What X-ray source counts can tell about large-scale matter distribution