[ticket/289] Add method for checking module count