[WIP] Make count class method in the FMXModel class