Hanna - here's more of the "program" from earlier. Does this help?
If number ends in 1 (except for 11) then
___No change to the word
______Example: У меня есть один дом.
______Example: У меня есть один словарь.
______Example: У меня есть один музей.
______Example: У меня есть одна газета.
______Example: У меня есть одна неделя.
______Example: У меня есть одна тетрадь.
______Example: У меня есть одно окно.
______Example: У меня есть одно здание.
___Goto Done
If number ends in 2, 3 or 4 (except for 12, 13, 14) then
___If Noun is in Genitive Singular Masculine - noun ends -а (hard stem) or -я (soft stem –й –я -ь)
______Example: У меня есть два дома
______Example: У меня есть два словаря
___Goto Done
___If Noun is in Genitive Singular Feminine - noun ends -ы (hard stem -а) or -и (soft stem –я -ь)
______Example: У меня есть две газеты.
______Example: У меня есть две недели.
___Goto Done
___If Noun is in Genitive Singular Neuter - noun ends -а (hard stem -о) or -я (soft stem -е)
______Example: У меня есть два окна.
______Example: У меня есть два здания.
___Goto Done
If number ends in all other numbers
___If Noun is in Genitive Plural Masculine –If ends in "ж,ч,ш,щ,ь" then add "ей"
If ends in "й, ц" (stressed) add "ев"
All other masuline nouns end in "ов" ***
______Example: У меня есть пять домов.
______Example: У меня есть пять музеев .
______Example: У меня есть пять словарей .
___Goto Done
___If Noun is in Genitive Plural Feminine (good luck) – (if ends –аthen drop –a / If ends –я(consonant) then changes into -ь/ If ends -я(vowel) then changes into –й/ If ends -ьthen changes into –ей) - Note: If a feminine word ends in a double consonant it is quite common for a vowel (о, е) to be inserted for easy pronunciation. (марка - марок, англичанка - англичанок, девушка - девушек) ***
______Example: У меня есть пять газет.
______Example: У меня есть пять недель.
______Example: У меня есть пять историй.
______Example: У меня есть пять тетрадей.
___Goto Done
___If Noun is in Genitive Plural Neuter – (If ends in "о" then drop "о" (no ending)
If ends in "е" becomes "ей"
If ends in "ие" becomes "ий") ***
______Example: У меня есть пять окон.
______Example: У меня есть пять зданий.
___Goto Done
Done
***from Russian Grammar - Nouns: Genitive Case
MasterRussian explanation of Genitive case: Genitive Case of Russian Nouns
If this helps more details to come.
Scott