Born rule from counting states